package net.flowas.os.domain;

import net.flowas.secure.entity.Group;
import javax.persistence.*;
import net.flowas.secure.entity.IdEntity;

/**
 * Entity implementation class for Entity: Position
 *
 */
@Entity
public class Position extends IdEntity {

    @ManyToOne
    private Group department;
    private String code;
    private String name;

    public Position() {
        super();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the department
     */
    public Group getDepartment() {
        return department;
    }

    /**
     * @param department the department to set
     */
    public void setDepartment(Group department) {
        this.department = department;
    }

}
